pandas drop rows with empty list

32

# Drop all rows that have an empty list in "example_column"

df[df['example_column'].map(lambda d: len(d)) > 0]

Comments

Submit
0 Comments